﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<nelech.Models.DBModel.ForumResponse>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    שו"ת-
    <%= Model.category.title %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        שו"ת-
        <%= Model.category.title %></h2>
         <%= Html.ActionLink("הוסף שירשור חדש", "CreateSubject", "Forum", new {id = Model.category.id }, null)%>
     
    <table class="forumSubject">
        <%foreach (var item in Model.responses.ToList())
          {
        %>
        <tr>
            <td>
              <%= Html.ActionLink(item.title, "ListResponseOfCategory", new {id = item.id })%> 
            </td>
            <td>
           <span class="forumName">     <%= item.name %> </span>
            </td>
            <td>
              <span class="forumName"> <%=nelech.Views.Shared.Code.Utils.GetHebrewJewishDateString(item.date, true)%></span>
            </td>
        </tr>
        <%} %>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="publishTop" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Right" runat="server">
</asp:Content>
